home *** CD-ROM | disk | FTP | other *** search
- function init()
- {
- soundFadeInc = 5;
- setupButtons();
- setupAudio();
- }
- function setupButtons()
- {
- var _loc1_ = this;
- var _loc2_ = _parent;
- schools_of_year.onRelease = function()
- {
- _parent.nav.schools_of_year.onRelease();
- };
- schools_of_year.onRollOver = function()
- {
- this.gotoAndStop(2);
- };
- schools_of_year.onRollOut = schools_of_year.onReleaseOutside = function()
- {
- this.gotoAndStop(1);
- };
- league_tables.onRelease = function()
- {
- _parent.nav.league_tables.onRelease();
- };
- league_tables.onRollOver = function()
- {
- this.gotoAndStop(2);
- };
- league_tables.onRollOut = league_tables.onReleaseOutside = function()
- {
- this.gotoAndStop(1);
- };
- search.onRelease = function()
- {
- _parent.nav.search.onRelease();
- };
- search.onRollOver = function()
- {
- this.gotoAndStop(2);
- };
- search.onRollOut = search.onReleaseOutside = function()
- {
- this.gotoAndStop(1);
- };
- features.onRelease = function()
- {
- _parent.nav_activate("");
- _parent.movie_load("features.swf");
- };
- added_content.onRelease = function()
- {
- _parent.nav_activate("");
- _parent.movie_load("added_value.swf");
- };
- added_content.onRollOver = function()
- {
- this.gotoAndStop(2);
- };
- added_content.onRollOut = added_content.onReleaseOutside = function()
- {
- this.gotoAndStop(1);
- };
- }
- function setupAudio()
- {
- var _loc1_ = this;
- mcAudio.onRollOver = function()
- {
- var _loc1_ = this;
- _loc1_.gotoAndStop(2);
- if(_loc1_.blnPlaying == true)
- {
- _loc1_.audiostatus.htmlText = "STOP";
- }
- else
- {
- _loc1_.audiostatus.htmlText = "PLAY";
- }
- };
- mcAudio.onRollOut = mcAudio.onReleaseOutside = function()
- {
- var _loc1_ = this;
- _loc1_.gotoAndStop(1);
- if(_loc1_.blnPlaying == true)
- {
- _loc1_.audiostatus.htmlText = "STOP";
- }
- else
- {
- _loc1_.audiostatus.htmlText = "PLAY";
- }
- };
- var _loc2_ = "home_vo.mp3";
- mcAudio.stopAudio = function()
- {
- var _loc1_ = this;
- _loc1_.blnPlaying = false;
- _loc1_.s.stop();
- _loc1_.audiostatus.htmlText = "PLAY";
- trace("this.blnPlaying: " + _loc1_.blnPlaying);
- };
- mcAudio.playAudio = function()
- {
- var _loc1_ = this;
- _loc1_.blnPlaying = true;
- _loc1_.s.start();
- _loc1_.audiostatus.htmlText = "STOP";
- };
- mcAudio.onPress = function()
- {
- var _loc1_ = this;
- !_loc1_.blnPlaying ? _loc1_.playAudio() : _loc1_.stopAudio();
- };
- mcAudio.s = new Sound();
- mcAudio.s.owner = mcAudio;
- mcAudio.s.onLoad = function()
- {
- trace("* onLoad()");
- this.owner.stopAudio();
- };
- mcAudio.s.onSoundComplete = function()
- {
- this.owner.stopAudio();
- };
- mcAudio.s.loadSound(_loc2_,true);
- }
- this.audiostatus.htmlText = "Poo";
-